| Name | Type | Description | |
| PRC_DISABLE_CRAFT | int | Completely disable the PRC Crafting System. (default: enabled) | |
| PRC_CraftTimerMultiplier | float | Multiply the delay (in seconds) after the creation of an item in which a PC can't craft anything. Normally, it's set to the market price of the item. Set it to less than 1 to reduce it instead. (default: 1.0). | |
| PRC_CraftTimerMax | int | Absolute maximum delay (in seconds) where crafting is disabled for a PC, regardless of the item's market price. By default it's 0 (meaning that there's no delay at all). | |
| PRC_CraftTimerMin | int | Absolute minimum delay (in seconds) in which crafting is disabled, regardless of the item's market price. (default: 0) |
nICHoursInDayCycle fICMinDays fICMaxDays
2DA V2.0
LABEL ReqType ReqParam1 ReqParam2
0 row_title TYPE PARAM1 PARAM2
1 row_title TYPE PARAM1 PARAM2
ReqParam2 must be replaced by **** if not existing.| ReqType | ReqParam1 | ReqParam2 | AND/OR | Description |
| RESULT | ResRef script name |
stack size arguments |
- | Creation result. For every recipe there must be one and only one result. ReqParam1 may be the ResRef of any item, placeable or creature, or the name of a script (see section SCRIPT and SCRIPTOR ReqTypes and scripted RESULT). ReqParam2 (if any) must be the number of objects to create (note that it will work for stackable items only; default is 1, NOT the default item stack size) or the argument of the script. NOTE: if the RESULT is not an item, it will have zero GP and XP cost. You should set EXTRAGOLD and EXTRAXP accordingly. |
| CASTERLVL | n | **** | AND | Minimum caster level (any). |
| ARCCASTERLVL | n | **** | AND | Minimum caster level (arcane). |
| DIVCASTERLVL | n | **** | AND | Minimum caster level (divine). |
| PSICASTERLVL | n | **** | AND | Minimum caster level (psionic). |
| EXTRAGOLD | GP | **** | AND | Additional GP required for creation. It will not increase the XP cost as well. |
| EXTRAXP | XP | **** | AND | Additional XP required for creation. |
| FEAT FEATOR |
ID | **** | AND OR |
Required feat. ID is the corresponding row in feat.2da. |
| SPELL SPELLOR |
ID | **** | AND | Spell needed. ID is the corresponding row in spells.2da. It can either be a prepared spell (it will be consumed) or a spell that has been previously cast on the recipe. Note that all SPELL requirements will be consumed, while only the first SPELLOR one will. |
| ITEM ITEMOR |
ResRef | stack size | AND OR |
Required item(s). Half of their market price will be detracted from the GP creation cost (while the XP cost will remain unchanged); the item cost cannot drop below 0. The stack size can be used for non-stackable items, too (**** means 1). Using ITEMOR you should note that, for example, if you require 5x ItemA or 20x ItemB, every ItemA will be worth 4 ItemB (i.e. 3x ItemA + 8x ItemB will be enough). |
| SKILL SKILLOR |
ID | score | AND OR |
Minimum skill requirement. ID is the corresponding row in skills.2da. |
| SKILLDC | ID | DC | AND | Skill check. All components (GP, XP, items and scripted requirements) will be lost in case of failure. ID is the corresponding row in skills.2da. |
| LEVEL LEVELOR |
class ID | level | AND OR |
Minimum level in a given class. ID is the corresponding row in classes.2da. |
| HELPER HELPEROR |
TAG | distance | AND OR |
TAG of an object (of any type) that must be near the PC or in the PC's inventory (it will not be consumed). If not specified, the maximum distance is 5.0. |
| SCRIPT SCRIPTOR |
ResRef | arguments | AND OR |
User-defined script. ReqParam2 will be passed to it as is. Read the dedicated help section for further details. |
| RACE | ID | subrace | OR | PC's race. ID is the corresponding row in racialtypes.2da. If ReqParam2 is left ****, subrace will be ignored. |
| ALIGN | alignement | **** | OR | LG, LN, LE, NG, N, NE, CG, CN or CE. |
| AREA | partial tag | reference tag | OR | TAG substring, or the whole TAG, of the area in which the PC must be. ReqParam2 is the complete TAG of an area to use to display the area name. |
| DEITY | name | **** | OR | Name of the PC's deity. |
2DA V2.0
LABEL ReqType ReqParam1 ReqParam2
0 Robe_of_the_Archmagi_White RESULT nw_mcloth002 ****
1 CasterLevel14th CASTERLVL 14 ****
2 Craft_Wondrous_Item_Feat FEAT 2925 ****
3 Mage_Armor SPELL 102 ****
4 Bless SPELL 6 ****
5 Spell_Resistance SPELL 168 ****
6 Lawful_Good ALIGN LG ****
7 Neutral_Good ALIGN NG ****
8 Chaotic_Good ALIGN CG ****
2DA V2.0
LABEL L_RESREF RECIPE_TAG
...
...
133 Robe_of_the_Archmagi_White nw_mcloth002 IREQ_ROBEARCW
#include "prc_inc_craft" //Set the requirement caption that will be displayed. //For RESULT ReqType, set the name of the recipe final result. void PRCCraft_SetCaption(string sText); //Return TRUE (success) or FALSE (requirement missing) (SCRIPT and SCRIPTOR only). void PRCCraft_SetReturnValue(int nValue); //Get ReqParam2 from the recipe, if any. string PRCCraft_GetArguments(); //Check if the script should consume whatever's needed (if any) / create the result //or is just checking for requirements / name. int PRCCraft_GetConsume();
//check if the Sandy Resque Quest has been completed #include "prc_inc_craft" void main() { PRCCraft_SetCaption("Sandy's been resqued"); int resqued = GetLocalInt(GetModule(), "SandyResqued"); PRCCraft_SetReturnValue(resqued); }